﻿package com.secneo.appshare.common;


public class Constants {

	public static final String URL = "http://share.bang001.com/feixiang2/";
//	public static final String URL = "http://chipwing0.vicp.cc:8080/feixiang/";
	public static final String SERVER_ICON_URL = "http://share.bang001.com/feixiang2/";
	
	public static final boolean SWITCH_SINA_CUSTOM = false;
	public static final String SERVER_BANGSHARE_ICON_URL = "http://www.bangcle.com/share_icon.png";
	public static final String TERM_OF_SERVICE_URL = "http://www.bangcle.com/privacy/index.html";

	public static String URL_HELP="file:///android_asset/html/sec_opt_question.html";
	public static String URL_MORE = "http://www.bangcle.com/gengduo/index.html";
	public static String URL_ABOUT = "http://www.bangcle.com/gywm/index.html";
	public static String URL_HUODONG_ACTIVITY = "http://www.bangcle.com/huodong/index.html";
	
	public static String FEEDBACK_FOLLOW = "/management/communication.do";
	public static String UPDATESERVER_FOLLOW = "/management/programManage.do?method=getBbSoftUpdate";

	public static String ORIGINAL_URL = "huiyuan.bang001.com";
//	public static String ORIGINAL_URL = "chipwing0.vicp.cc:8080";

	public static String ORIGINAL_VERSION = "0";
	public static String POLICYSERVER_FOLLOW = "/management/programManage.do?method=getServerConfig&configversion=";
    public static String DEFAULT_URL_TEMP = ORIGINAL_URL;
    public static final String MP_URL="http://"+DEFAULT_URL_TEMP+"/management/";
	public static String ChannelID="http://"+DEFAULT_URL_TEMP+"/management/mobileUserInfo.do";
	public static final String MAINACTIVITYINDEXACTION = "main_activity_index_action" ;
	
	public static final String NEW_USER_POST_URL = "user/register.action";
	public static final String SEND_APPFILE_URL = "user/commitApp.action";
	public static final String RECOM_APP_POST_URL = "user/recommendedApp.action";
	public static final String OTHER_USER_INFO_URL = "user/appsOfOther.action";
	public static final String FEED_GET_POST_URL = "user/usersAndApps.action";
	public static final String FEED_GET_POST_BYPHONE_URL = "user/getPhoneUserByPage.action";
	public static final String FEED_GET_TOP_PHONES_URL = "user/getTopPhones.action";
	public static final String GET_APPINFO_POST_URL = "app/getAppInf.action";
	public static final String GET_APPCOMMENTS_POST_URL = "app/getAppComments.action";
	public static final String GET_APPUSERS_POST_URL = "app/getAppUsers.action";
	public static final String GET_FOLLOWER_LIST_URL = "attent/getFriends.action";
	public static final String GET_ALL_ACT_POST_URL = "act/getUserAction.action";
	public static final String SEND_ACTIONS_POST_URL = "act/uploadUserAct.action";
	public static final String SEND_DOWN_LOG_URL = "act/downLogAct.action";
	public static final String LOGIN_USER_POST_URL = "user/login.action";
	public static final String MODIFY_USER_PASSWORD_POST_URL = "user/editPwd.action";
	public static final String LOST_USER_PASSWORD_POST_URL = "user/recoveredPwd.action";
	public static final String FOLLOW_SOMEONE_URL = "attent/attent.action";
	public static final String GET_FOLLOWED_LIST_URL = "attent/attents.action";
	public static final String SEND_MSG_URL = "letter/sendLetter.action" ;
	public static final String RECEIVE_MSG_URL_BY_UID = "letter/getDialogList.action" ;
	public static final String GET_NEWS_URL = "user/getReminds.action" ;
	public static final String GET_REMIND_LIST_URL = "act/getActionList.action" ;
	public static final String RECEIVE_MSG_URL = "letter/getLetterList.action" ;
	public static final String GET_TOP_LIST_URL = "app/rankingList.action";
	public static final String SEND_MD5_URL = "app/sendMd5.action";
	public static final String GETMEDALS_POST_URL = "medal/getMedals.action";
	public static final String SEARCH_USER_URL = "search/searchUser.action";
	public static final String SEARCH_APP_URL = "search/searchApp.action";
	public static final String GET_KEYWORD_URL = "search/hotSearchKeyword.action";
	public static final String GET_EMAIL_URL = "user/getEmail.action";
	public static final String SEND_SNSINFO_URL = "user/sendSnsInfo.action";
	public static final String GET_USER_BNUMBER = "user/getAndroidAccout.action";
	public static final String GET_FRIENDS_URL = "attent/getSnsFriends.action";
	public static final String UPLOAD_FRIENDS_URL = "attent/batchAttent.action";
	public static final String UPLOAD_REQUEST_ATTENT_URL = "attent/batchRequestAttent.action";
	public static final String UPLOAD_REJECT_ATTENT_URL = "attent/batchRejectAttent.action";
	
	
	public static final String UPLOAD_PHOTO_URL = "user/uploadAvatar.action";
	public static final String PUSH_MESSAGE= "push/pushMessage.action";
	public static final String DELETE_MSG_URL = "letter/delLetter.action";
	public static final String DESTROY_SNSACCOUNT_URL = "user/destroySNSAccout.action";
	public static final String DESTROY_BANGACCOUNT_URL = "user/destroyBangAccount.action";
	public static final String GET_NOT_ATTENT_URL = "attent/getNotAttentList.action";
	public static final String GET_NEED_ATTENT_URL = "attent/getNeedAttentList.action";
	
	/* Default Constant value for the whole app */ 
	public static final String VERSION_CODE = "1.6";
	public static final int HTTP_SO_TIMEOUT = 15*1000;
	public static final int HTTP_LO_TIMEOUT = 30*1000;
	public static final int AVATAR_ICON_NUMBER = 10;
	public static final String PACKAGENAME = "com.secneo.appshare";
	public static final int CURSOR_MOVE_DISTANCE = 100;
	
	/* 与程序推荐有关的消息 */
	public static final int MSG_GET_RECOMS_NETWORK_ERROR = -2;
	public static final int MSG_GET_RECOMS_FINISH = 1;
	public static final int MSG_GET_APPICON_FINISH = 2;
	public static final int MSG_GET_ACTIVITY_FINISH = 201;
	public static final int MSG_GET_ACTIVITYICON_FINISH = 202;
	public static final int MSG_GET_USER_ACTIVITY_FINISH = 203;
	public static final int MSG_GET_USER_ACTIVITYICON_FINISH = 204;
	public static final int MSG_GET_USER_RGISTER_FINISH = 205;
	public static final int MSG_GET_TOPLIST_FINISH = 206;
	public static final int MSG_GET_TOPLISTICON_FINISH = 207;
	
	/* 与用户相关的消息 */
	public static final int MSG_GET_FEEDS_NETWORK_ERROR = -3;
	public static final int MSG_GET_FEEDS_FINISH = 3;
	public static final int MSG_GET_FEEDICON_FINISH = 4;
	public static final int MSG_GET_TOP_PHONE_LIST_FINISH = 5;
	public static final int MSG_GET_TOP_PHONE_NETWORK_ERROR = 12;
	public static final int MSG_ATTENT_MULTIPLE_FINISH = 6;
	public static final int MSG_ATTENT_SINGLE_FINISH = 7;
	public static final int MSG_REJECT_MULTIPLE_FINISH = 8;
	public static final int MSG_REJECT_SINGLE_FINISH = 9;
	public static final int MSG_ACCEPT_MULTIPLE_FINISH = 10;
	public static final int MSG_ACCEPT_SINGLE_FINISH = 11;
	public static final String USER_TYPE_FIELD = "field";
	public static final String USER_TYPE_FOLLOWED = "followed";
	public static final String USER_TYPE_FOLLOWER = "follower";
	public static final String USER_TYPE_MY_ATTENT = "my_attent";
	public static final String USER_TYPE_REQUEST_ATTENT = "request_attent";
	public static final String USER_TYPE_RECEIVED_ATTENT = "received_attent";
	public static final String USER_TYPE_MY_FANS = "my_fans";
	public static final String USER_TYPE_SINA_FANS = "sina_fans";
	public static final String USER_BNUMBER_ACTION = "user_bnumber_action" ;
	public static final String USER_NICK_NAME_ACTION = "user_nick_name_action" ;
	public static final String USER_PWD_NAME_ACTION = "user_pwd_name_action" ;
	
	/* Splash Activity 的消息 */
	
	public static final int MSG_GOTO_LOGIN = 5;
	public static final int MSG_NO_NETWORK_ERROR = 6;
	public static final int MSG_GOTO_MAIN = 7;
	
	/* 与单步注册和微博登陆相关的消息 */
	public static final int MSG_LOGIN_FAILED = -4;
	public static final int MSG_LOGIN_SUCCESS = 8;
	
	/* 获取一个应用程序的消息 */
	public static final int MODE_GET_ALL_APP_INFO = 1;
	public static final int MSG_GET_APP_INFO_NETWORK_ERROR = -5;
	public static final int MSG_GET_APP_INFO_STATUS_ERROR = -6;
	public static final int MSG_GET_APP_INFO_STATUS_OK = 9;
	public static final int MSG_GET_APP_INFO_ICON_FINISH = 10;
	public static final int MSG_GET_APP_INFO_SHORT_FINISH = 11;
	public static final int MSG_GET_APP_USER_ICON_FINISH = 13;
	public static final int TYPE_APP_UPDATE_COMMENTS = 20;
	
	/*获取应用程序的评论信息*/
	public static final int MODE_GET_APP_COMMENTS_FINISH = 41;
	public static final int MODE_GET_APP_COMMENTS_NET_ERROR = 42;
	public static final int MSG_GET_APP_COMMNETS_STATUS_ERROR = -46;
	public static final int MSG_GET_APP_COMMNETS_STATUS_OK = 43;
	public static final int MODE_GET_APP_COMMENTS_IMG_FINISH = 44;
	
	/*获取应用程序的评论信息*/
	public static final int MODE_GET_APP_USERS_FINISH = 51;
	public static final int MODE_GET_APP_USERS_NET_ERROR = 52;
	public static final int MSG_GET_APP_USERS_STATUS_ERROR = -56;
	public static final int MSG_GET_APP_USERS_STATUS_OK = 53;
	public static final int MODE_GET_APP_USERS_IMG_FINISH = 54;
	
	/* 动态活动相关的消息 */
	public static final int MSG_ACTION_SHARE_OK = 101;
	public static final int MSG_ACTION_FAVORITE_OK = 102;
	public static final int MSG_ACTION_FAVORITE_ERROR = 112;
	public static final int MSG_ACTION_FOLLOW_OK = 103;
	public static final int MSG_ACTION_FOLLOW_ERROR = 104;
	public static final int MSG_ACTION_UNFOLLOW_OK = 105;
	public static final int MSG_ACTION_UNFOLLOW_ERROR = 106;
	public static final int MSG_ACTION_MSG_OK = 107;
	public static final int MSG_ACTION_MSG_ERROR = 108;
	public static final int MSG_ACTION_MSG_HOT = 109;
	public static final int MSG_ACTION_MSG_DROP = 110;
	
	/* 获取其他用户的应用程序的消息 */
	public static final int MSG_GET_OTHER_USER_ERROR = -7;
	public static final int MSG_GET_OTHER_USER_STATUS_ERROR = -8;
	public static final int MSG_GET_OTHER_USER_STATUS_OK = 11;
	public static final int MSG_GET_OTHER_USER_APP_ICON_FINISH = 12;
	public static final int MSG_GET_MY_STATUS_INFO_OK = 13;
	 
	public static final int RECOM_APP_IS_ALL = 1;
	public static final int RECOM_APP_IS_GAMEONLY = 2;
	public static final int RECOM_APP_IS_ACTIVITY = 0;

	public static final String ACTIVE_ACCOUNT = "active_account";
	/* 与新浪微博相关的消息 */
	public static final int MSG_GET_FOLLOWED_FINISH = 14;
	public static final int MSG_GET_FANS_FINISH = 15;
	public static final int MSG_START_FEEDS_THREAD = 16;
	public static final int MSG_START_FANS_THREAD = 17;
	public static final int UPLOAD_ACTION_LOGIN = 20;
	public static final int UPLOAD_ACTION_SHARE_FIELD = 21;
	public static final int UPLOAD_ACTION_SHARE_WEIBO = 22;
	public static final int UPLOAD_ACTION_LIKE = 23;
	public static final int UPLOAD_ACTION_TALK = 24;
	public static final int UPLOAD_ACTION_DOWN = 25;
	public static final int MSG_GET_MY_ATTENT_FINISH = 26;
	public static final int MSG_GET_REQUEST_ATTENT_FINISH = 27;
	public static final int MSG_GET_RECEIVED_ATTENT_FINISH = 28;
	public static final int MSG_GET_MY_FANS_FINISH = 29;
	public static final int MSG_GET_SINA_FANS_FINISH = 30;
	public static final int MSG_GET_OTHER_ATTENT_FINISH = 31;
	public static final int MSG_GET_OTHER_FANS_FINISH = 32;
	
	public static final String PRE_USER_INFO = "user_info";
	public static final String USER_ID = "userId";
	public static final String USER_NAME = "userName";
	public static final String USER_IMAGE = "userImage";
	public static final String ACCESS_TOKEN = "token";
	public static final String ACCESS_TOKEN_SECRET = "tokenSecret";
	public static final String OFFICIAL_WEIBO_ID = "2205360733" ;	//梆梆安卓分享微博ID
	
	/** 私信相关 **/
	public static final String HAS_NEW_MSG_COUNT_ACTION = "has_new_msg_count_action";
	public static final String NEW_MSG_COUNT_TAG = "new_msg_count_tag";
	public static final String NEW_HONOR_COUNT_TAG = "new_honor_count_tag";
	public static final String HAS_NEW_Activity_ACTION = "has_new_activity_action";
	public static final String NEW_Activity_COUNT_TAG = "new_activity_count_tag";
	public static final String HAS_NEW_FANS_ACTION = "has_new_fans_action";
	public static final String NEW_FANS_COUNT_TAG = "new_fans_count_tag";
	
	public static final String REMIND_ACTION = "remind_action";
	public static final String NEW_REMIND_TAG = "new_remind_tag";
	
	public static final String UID_ACTION = "uid" ;
	
	/*私信提醒相关*/
	public static final int GET_PRIVATE_MSG_ERR = 401 ;
	public static final int GET_PRIVATE_MSG_FINISH = 402 ;
	public static final int GET_PRIVATE_MSG_NO_DATA = 403 ;
	public static final int GET_PRIVATE_MSG_IMG_FINISH = 404 ;
	public static final int GET_PRIVATE_MSG_BY_UID_ERR = 405 ;
	public static final int GET_PRIVATE_MSG_BY_UID_FINISH = 406 ;
	public static final int GET_PRIVATE_MSG_BY_UID_NO_DATA = 407 ;
	public static final int GET_PRIVATE_MSG_IMG_BY_UID_FINISH = 408 ;
	public static final int DELETE_PRIVATE_MSG_ACTION = 409 ;
	public static final int DELETE_PRIVATE_MSG_FINISH = 410 ;
	public static final int DELETE_PRIVATE_MSG_ERR = 411 ;
	public static final int GET_REMIND_ERR = 417 ;
	public static final int GET_REMIND_FINISH = 418 ;
	public static final int GET_REMIND_NO_DATA = 419 ;
	public static final int GET_REMIND_ICON_FINISH = 420 ;
	public static final String NOTES_INTENT_ACTION = "notes_intent_action" ;
	public static final String NOTES_INTENT_ACTION_TAG = "secneo_notes_intent_action_tag" ;

	/* 与人人网相关的消息 */
	public static final String RENREN_API_KEY = "ee2ad0fc83ab466b89a43d8b5d1c5c77";
	public static final String RENREN_USER_ID = "renren_userId";
	public static final String RENREN_USER_NAME = "renren_userName";
	public static final String RENREN_USER_IMAGE = "renren_userImage";
	
	/* 与开心网相关的消息 */
	public static final String KAIXIN_INTERFACE_GETUSERINFO = "/users/me.json";
	public static final String KAIXIN_INTERFACE_POSTRECORD = "/records/add.json";
	public static final String KAIXIN_USER_ID = "kaixin_userId";
	public static final String KAIXIN_USER_NAME = "kaixin_userName";
	public static final String KAIXIN_USER_IMAGE = "kaixin_userImage";

	public static final int MSG_KAIXIN_LOGIN_SUCCESS = 1;
	public static final int MSG_KAIXIN_LOGIN_FAILED = 2;

	/* 与搜索相关的消息 */
	public static final int MSG_SEARCH_APPS_FINISH = 301;
	public static final int MSG_SEARCH_USERS_FINISH = 302;
	public static final int MSG_SEARCH_APPS_ICON_FINISH = 303;
	public static final int MSG_SEARCH_USERS_ICON_FINISH = 304;
	public static final int LOOK_PRIVATE_MSG_BY_UID = 303 ;
	public static final int APP_TYPE_SEARCH = 307;
	public static final int GET_KEYWORD_FINISH = 308;
	public static final int GO_TO_RESULT = 309;
	public static final String USER_TYPE_SEARCH = "user_search";

	/* 与腾讯微博相关的消息 */	//TODO rubbish code
	public static final String QWEIBO_APP_KEY = "a26ae5eee37944adb79d3e7d381a8440" ;
	public static final String QWEIBO_APP_SECRET = "43f4a87af7efe8055f400b0cdd93bffb" ;
	public static final String QWEIBO_TOKEN_ACTION = "qweibo_token_action" ;
	public static final String QWEIBO_TOKEN_SECRET_ACTION = "qweibo_token_secret_action" ;
	public static final String QWEIBO_ACCESS_TOKEN_ACTION = "qweibo_access_token_action" ;
	public static final String QWEIBO_ACCESS_TOKEN_SECRET_ACTION = "qweibo_access_token_secret_action" ;
	public static final String QWEIBO_USER_ID = "qweibo_user_id" ;
	public static final String QWEIBO_USER_NAME = "qweibo_user_name" ;
	public static final String QWEIBO_USER_IMAGE = "qweibo_user_image" ;

	/* 与用户关系相关 */
	public static final int FOLLOW_NONE = 0;
	public static final int FOLLOW_ME = 1;
	public static final int FOLLOW_HIM = 2;
	public static final int FOLLOW_EACH = 3;
	

	/* 与社区相关的消息 */
	public static final int SNS_INDEX_SINA = 1;
	public static final int SNS_INDEX_TENCENT = 2;
	public static final int SNS_INDEX_KAIXIN = 3;
	public static final int SNS_INDEX_RENREN = 4;

	public static final int ACCOUNT_LOGIN_ARRAY_INDEX_LOCAL = 0;
	public static final int ACCOUNT_LOGIN_ARRAY_INDEX_SINA = 1;
	public static final int ACCOUNT_LOGIN_ARRAY_INDEX_TENCENT = 2;
	public static final int ACCOUNT_LOGIN_ARRAY_INDEX_RENREN = 3;
	public static final int ACCOUNT_LOGIN_ARRAY_INDEX_KAIXIN = 4;
	
	public static final String SNS_HAS_ASSOCIATE = "sns_has_associate" ;

	public static final String EXIT_BEHAVIOUR = "exit_behaviour";
	public static final int EXIT_BEHAVIOUR_GOTO_MAIN = 101;
	public static final int EXIT_BEHAVIOUR_BACK = 102;
	public static final int EXIT_BEHAVIOUR_GOTO_ZONE = 103;
	public static final int RENREN_BUTTON_LOGIN_CHOICE = 201;
	public static final int RENREN_BUTTON_ACCOUNT_MANAGEMENT = 202;
	public static boolean pageFlag=false;
	public static int cursor=1;
	public static String nowTime="";
	public static int pushHour=13;
	public static int pushMinute=0;
	public static String pushFirstTime="8:29";
	public static String pushSecondTime="11:29";
	public static String pushThirdTime="18:29";
	public static int recomCurrent=1;
	public static boolean recomPageFlag=false;
	public static boolean feedPageFlag=false;
	public static int feedCurrent=1;
	public static int recomThreadOk=0;

	/* 与新浪微博注册相关 */
	public static final String SINA_REGISTER_URL = "http://api.weibo.cn/interface/f/ttt/v3/getwmsmsnum.php";
	public static final String SINA_REGISTER_VM="4122_0009";
	

	public static int feedGetTypeAll=0;
	public static int feedGetTypeByPhone=1;
	public static int feedGetTypeByApp=2;
	
	/* 其他 */
	public static int phoneListCount=10;
	
	public static int actionTypeFriend=1;
	public static int actionTypeMine=2;
	public static int actionTypeUser=3;
	
}
